{% extends "base.html" %}{% block page %}<div class="postarea">
      <form name="searchform" id="searchform" action="/search" method="get">
      <table class="postform">
        <tbody>
          <tr>
            <td class="postblock">
              Search
            </td>
            <td>
              <input type="text" name="query" value="{{ query }}" size="40" maxlength="75" accesskey="q">
              <input type="submit" value="Submit" accesskey="z">
            </td>
          </tr>
        </tbody>
      </table>
      </form>{% if not query %}
      <script type="text/javascript">
      document.searchform.query.focus();
      </script>{% endif %}
    </div>
    <hr>
    <div style="text-align: center;font-weight: bold;">
      {% if not numresults %}{% if query %}No results were found.{% else %}Enter a keyword or phrase above to initiate the search.{% endif %}{% else %}{% ifequal numresults 1 %}
      {{ numresults }} post was found.{% else %}
      {{ numresults }} posts were found.{% endifequal %}{% endif %}
    </div>
    <hr>{% for post in results %}
    <table>
    <tbody>
    <tr>
    <td class="doubledash">
      &gt;&gt;
    </td>
    <td class="reply" id="reply{{ post.postid }}">
    {% if post.parentid %}<a href="/res/{{ post.parentid }}.html#{{ post.postid }}">{% else %}<a href="/res/{{ post.postid }}.html#{{ post.postid }}">{% endif %}No. {{ post.postid }}</a><br>
    <blockquote>
      {{ post.message }}
    </blockquote>
    </td>
    </tr>
    </tbody>
    </table>
    <hr>{% endfor %}{% endblock %}